import request from '@/utils/request'

// 报修单列表
export function listReportOrder(query) {
  return request({
    url: '/system/report/order/list',
    method: 'get',
    params: query
  })
}

// 获取报修单详情
export function getReportOrder(reportNo) {
  return request({
    url: '/system/report/order/' + reportNo,
    method: 'get'
  })
}

// 新增报修单
export function addReportOrder(data) {
  return request({
    url: '/system/report/order',
    method: 'post',
    data: data
  })
}

// 修改报修单
export function updateReportOrder(data) {
  return request({
    url: '/system/report/order',
    method: 'put',
    data: data
  })
}

// 删除报修单
export function delReportOrder(reportNos) {
  return request({
    url: '/system/report/order/' + reportNos,
    method: 'delete'
  })
}

